package jp.co.sn.mml.pojo.tdipkjskk;

import jp.co.sn.mml.pojo.tmyz.Tmyz;

public class TdipkjskkId implements java.io.Serializable { 

	//受付日
	private Long ukeYmd;
	//検査番号
	private Long ksNo;
	//行番号
	private Long seq;
	//薬剤コード
	private Tmyz yzCd;
	//追加薬剤区分
	private String tkYzKbn;

	/** default constructor */
	public TdipkjskkId(){

	}

	/** full constructor */
	public TdipkjskkId(Long ukeYmd,Long ksNo,Long seq
			,Tmyz yzCd,String tkYzKbn){
		this.ukeYmd = ukeYmd;
		this.ksNo = ksNo;
		this.seq = seq;
		this.yzCd = yzCd;
		this.tkYzKbn = tkYzKbn;
	}

	//Property accessors
	public Long getUkeYmd(){
		return this.ukeYmd;
	}

	public void setUkeYmd(Long ukeYmd){
		this.ukeYmd=ukeYmd;
	}

	public Long getKsNo(){
		return this.ksNo;
	}

	public void setKsNo(Long ksNo){
		this.ksNo=ksNo;
	}

	public Long getSeq(){
		return this.seq;
	}

	public void setSeq(Long seq){
		this.seq=seq;
	}

	public Tmyz getYzCd(){
		return this.yzCd;
	}

	public void setYzCd(Tmyz yzCd){
		this.yzCd=yzCd;
	}

	public String getTkYzKbn(){
		return this.tkYzKbn;
	}

	public void setTkYzKbn(String tkYzKbn){
		this.tkYzKbn=tkYzKbn;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TdipkjskkId))
			return false;

		TdipkjskkId castOther = (TdipkjskkId) other;

		return ((this.getUkeYmd() ==  castOther.getUkeYmd())
				||(this.getUkeYmd()!=null && castOther.getUkeYmd() !=null 
					&& castOther.getUkeYmd() !=null 
					&& this.getUkeYmd().equals(castOther.getUkeYmd())))
			&& ((this.getKsNo() ==  castOther.getKsNo())
				||(this.getKsNo()!=null && castOther.getKsNo() !=null 
					&& castOther.getKsNo() !=null 
					&& this.getKsNo().equals(castOther.getKsNo())))
			&& ((this.getSeq() ==  castOther.getSeq())
				||(this.getSeq()!=null && castOther.getSeq() !=null 
					&& castOther.getSeq() !=null 
					&& this.getSeq().equals(castOther.getSeq())))
			&& ((this.getYzCd() ==  castOther.getYzCd())
				||(this.getYzCd()!=null && castOther.getYzCd() !=null 
					&& castOther.getYzCd() !=null 
					&& this.getYzCd().equals(castOther.getYzCd())))
			&& ((this.getTkYzKbn() ==  castOther.getTkYzKbn())
				||(this.getTkYzKbn()!=null && castOther.getTkYzKbn() !=null 
					&& castOther.getTkYzKbn() !=null 
					&& this.getTkYzKbn().equals(castOther.getTkYzKbn())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUkeYmd() == null ? 0 : this.getUkeYmd().hashCode());
		result = 37 * result
				+ (getKsNo() == null ? 0 : this.getKsNo().hashCode());
		result = 37 * result
				+ (getSeq() == null ? 0 : this.getSeq().hashCode());
		result = 37 * result
				+ (getYzCd() == null ? 0 : this.getYzCd().hashCode());
		result = 37 * result
				+ (getTkYzKbn() == null ? 0 : this.getTkYzKbn().hashCode());
		return result;
	}

}